package com.yuyou.activity.ts.service.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class ActivityTsUserDetail implements Serializable {
    /**
     * 主键
     */
    private Long activityTsUserDetailId;

    /**
     * 项目代码
     */
    private String projectCode;

    /**
     * 答题分班用户主键
     */
    private Long activityTsUserId;

    /**
     * 答题分班题干主键
     */
    private Long activityTsQuestionConfigId;

    /**
     * 选择答案
     */
    private String answer;

    /**
     * 是否正确
     */
    private Integer isRight;

    /**
     * 状态:0：未答，1：正在答，2：已答
     */
    private Integer status;

    private Integer sort;

    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Long getActivityTsUserDetailId() {
        return activityTsUserDetailId;
    }

    public void setActivityTsUserDetailId(Long activityTsUserDetailId) {
        this.activityTsUserDetailId = activityTsUserDetailId;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public Long getActivityTsUserId() {
        return activityTsUserId;
    }

    public void setActivityTsUserId(Long activityTsUserId) {
        this.activityTsUserId = activityTsUserId;
    }

    public Long getActivityTsQuestionConfigId() {
        return activityTsQuestionConfigId;
    }

    public void setActivityTsQuestionConfigId(Long activityTsQuestionConfigId) {
        this.activityTsQuestionConfigId = activityTsQuestionConfigId;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Integer getIsRight() {
        return isRight;
    }

    public void setIsRight(Integer isRight) {
        this.isRight = isRight;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ActivityTsUserDetail other = (ActivityTsUserDetail) that;
        return (this.getActivityTsUserDetailId() == null ? other.getActivityTsUserDetailId() == null : this.getActivityTsUserDetailId().equals(other.getActivityTsUserDetailId()))
            && (this.getProjectCode() == null ? other.getProjectCode() == null : this.getProjectCode().equals(other.getProjectCode()))
            && (this.getActivityTsUserId() == null ? other.getActivityTsUserId() == null : this.getActivityTsUserId().equals(other.getActivityTsUserId()))
            && (this.getActivityTsQuestionConfigId() == null ? other.getActivityTsQuestionConfigId() == null : this.getActivityTsQuestionConfigId().equals(other.getActivityTsQuestionConfigId()))
            && (this.getAnswer() == null ? other.getAnswer() == null : this.getAnswer().equals(other.getAnswer()))
            && (this.getIsRight() == null ? other.getIsRight() == null : this.getIsRight().equals(other.getIsRight()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getActivityTsUserDetailId() == null) ? 0 : getActivityTsUserDetailId().hashCode());
        result = prime * result + ((getProjectCode() == null) ? 0 : getProjectCode().hashCode());
        result = prime * result + ((getActivityTsUserId() == null) ? 0 : getActivityTsUserId().hashCode());
        result = prime * result + ((getActivityTsQuestionConfigId() == null) ? 0 : getActivityTsQuestionConfigId().hashCode());
        result = prime * result + ((getAnswer() == null) ? 0 : getAnswer().hashCode());
        result = prime * result + ((getIsRight() == null) ? 0 : getIsRight().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", activityTsUserDetailId=").append(activityTsUserDetailId);
        sb.append(", projectCode=").append(projectCode);
        sb.append(", activityTsUserId=").append(activityTsUserId);
        sb.append(", activityTsQuestionConfigId=").append(activityTsQuestionConfigId);
        sb.append(", answer=").append(answer);
        sb.append(", isRight=").append(isRight);
        sb.append(", status=").append(status);
        sb.append(", sort=").append(sort);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}